package com.hayato.demo.client.model;

import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.Serialized;

import com.hayato.demo.client.Info.OrderInfo;

public class OrderModel implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5133820927904654065L;
	private long id;
	private Date order_date;
	private Date delivery_schedule_date;
	private Date shop_schedule_date;
	private Date delivery_finish_date;
	private Date shop_finish_date;
	private Double summary_money;
	private String remark;
	
	@Serialized
	private CustomerModel customer_Model;
	public OrderModel(long id,Date order_date,Date delivery_schedule_date,Date shop_schedule_date,Date delivery_finish_date,Date shop_finish_date,Double summary_money,CustomerModel customerModel){
		this.id=id;
		this.order_date=order_date;
		this.delivery_schedule_date=delivery_schedule_date;
		this.shop_schedule_date=shop_schedule_date;
		this.delivery_finish_date=delivery_finish_date;
		this.shop_finish_date=shop_finish_date;
		this.summary_money=summary_money;
		this.customer_Model=customerModel;
	}
	public OrderModel(){
		
	}
	
	public long getId() {
		return id;
	}


	public void setId(long id) {
		this.id = id;
		
	}

	public Date getOrder_date() {
		return order_date;
	}


	public void setOrder_date(Date order_date) {
		this.order_date = order_date;
		
		
	}


	public Date getDelivery_schedule_date() {
		return delivery_schedule_date;
	}


	public void setDelivery_schedule_date(Date delivery_schedule_date) {
		this.delivery_schedule_date = delivery_schedule_date;
		
	}


	public Date getShop_schedule_date() {
		return shop_schedule_date;
	}


	public void setShop_schedule_date(Date shop_schedule_date) {
		this.shop_schedule_date = shop_schedule_date;
		
	}


	public Date getDelivery_finish_date() {
		return delivery_finish_date;
	}


	public void setDelivery_finish_date(Date delivery_finish_date) {
		this.delivery_finish_date = delivery_finish_date;
		
	}


	public Date getShop_finish_date() {
		return shop_finish_date;
	}


	public void setShop_finish_date(Date shop_finish_date) {
		this.shop_finish_date = shop_finish_date;
		
	}


	public Double getSummary_money() {
		return summary_money;
	}


	public void setSummary_money(Double summary_money) {
		this.summary_money = summary_money;
		
	}
	
	
	public CustomerModel getCustomer_Model() {
		return customer_Model;
	}
	public void setCustomer_Model(CustomerModel customer_Model) {
		this.customer_Model = customer_Model;
	}
	
	
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String toModelString(){
		String str="";
		str+=this.getId()+",";
		str+=this.getCustomer_Model().getId();
		str+=this.getCustomer_Model().getName();
		str+=this.getOrder_date().toString()+",";
		str+=this.getDelivery_schedule_date().toString()+",";
		str+=this.getShop_schedule_date().toString()+",";
		str+=this.getDelivery_finish_date().toString()+",";
		str+=this.getShop_finish_date().toString()+",";
		str+=this.getSummary_money()+"";
		return str;
	}
	
	
}
